home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_10.lha
/
5_10
/
tstc.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
720b
|
31 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
include "5_10c.h" // class tableentry
include "5_10c1.h" // tableentry::tableentry()
include "5_10c2.h" // tableentry::~tableentry()
include "5_10c3.h" // tableentry::getvardata()
include "5_10c4.h" // tableentry::settype()
define x(xn) \
cout << "namespace.get(" << xn << ")=" << namespace.getvardata(xn, &v) << "\n" \
<< "\taddr=" << v->address << "\n" \
<< "\ttype='" << chr(v->type) << "'\n"
ain()
tableentry namespace;
vardata *v;
x("hello");
x("hello");
x("there");
x("hi");
x("hello");
x("hello");
return 0;